/*
 * @Description:
 * @Author: 龙春雨
 * @Date: 2020-07-30 09:44:55
 */

/* eslint-disable */
import Ueditor from './ueditor/index.js';
import Vue from 'vue';
const components = [Ueditor];

function install(Vue) {
  Vue.prototype.$axios = window.axios;
  components.map(component => {
    Vue.component(component.name, component);
  });
}

if (window.Vue) {
  install(window.Vue);
} else {
  install(Vue);
}

export default install;
